<!doctype html>
[#escape x as (x)!?html]
<html lang="[=lang!.lang]">
<head>
    <title>[=title!'无标题']</title>
    [#include "/layout/head.html"]
</head>
<body class="bg-white/95 dark:bg-neutral-800/95 transition-all duration-600 ease-in-out">
[#include "/layout/header.html"]
<!-- 主内容 -->
<main class="container mx-auto px-4 md:px-6 pt-24 md:pt-28 pb-16 dark:bg-neutral-700/95">
    <!-- 搜索区域 -->
    <section class="mb-12">
        <div class="rounded-xl p-6 md:p-8 shadow-sm dark:text-white">
            <h1 class="text-2xl md:text-3xl font-bold mb-4">搜索结果</h1>
            <p class="mb-6">找到 <span class=" font-medium">28</span> 篇关于 <span
                    class="font-medium">"人工智能"</span> 的文章</p>

            <!-- 搜索框 -->
            <div class="relative mb-8">
                <form class="block">
                    <div class="w-full">
                        <input type="text" name="q" placeholder="搜索文章标题、内容、作者..." value="人工智能"
                               class="w-full rounded-lg pr-4 py-4 border text-dark dark:text-white">
                        <button type="submit" class="absolute right-4 py-4">
                            <i class="fa-solid fa-search"></i>
                        </button>
                    </div>
                    <!-- 高级搜索选项切换 -->
                    <button type="reset" id="advanced-search-toggle"
                            class="absolute right-4 font-medium flex items-center">
                        <span>高级搜索</span>
                        <i class="fa-solid fa-chevron-down ml-1 text-xs transition-transform duration-300"></i>
                    </button>

                    <!-- 高级搜索选项 -->
                    <div id="advanced-search-options"
                         class="hidden mt-4 p-4 rounded-lg  animate-fade-in">
                        <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                            <div>
                                <label class="block font-medium  mb-2">搜索范围</label>
                                <div class="space-y-2">
                                    <label class="flex items-center">
                                        <input type="checkbox" checked
                                               class="w-4 h-4  rounded">
                                        <span class="ml-2 ">标题</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" checked
                                               class="w-4 h-4  rounded">
                                        <span class="ml-2 ">内容</span>
                                    </label>
                                    <label class="flex items-center">
                                        <input type="checkbox" checked
                                               class="w-4 h-4  rounded">
                                        <span class="ml-2 ">作者</span>
                                    </label>
                                </div>
                            </div>
                            <div class="shadow-sm bg-neutral-600">
                                <label class="block font-medium  mb-2">文章分类</label>
                                <select class="w-full p-2 ">
                                    <option value="" class="text-dark">所有分类</option>
                                    <option value="ai" class="text-dark">人工智能</option>
                                    <option value="ml" class="text-dark">机器学习</option>
                                    <option value="ds" class="text-dark">数据科学</option>
                                    <option value="cloud" class="text-dark">云计算</option>
                                    <option value="blockchain" class="text-dark">区块链</option>
                                </select>
                            </div>
                            <div class="shadow-sm bg-neutral-600">
                                <label class="block font-medium  mb-2">发布时间</label>
                                <select class="w-full p-2">
                                    <option value="" class="text-dark">不限</option>
                                    <option value="week" class="text-dark">最近一周</option>
                                    <option value="month" class="text-dark">最近一个月</option>
                                    <option value="quarter" class="text-dark">最近三个月</option>
                                    <option value="year" class="text-dark">最近一年</option>
                                </select>
                            </div>
                        </div>
                        <div class="mt-4 flex justify-end">
                            <button type="submit" class="px-4 py-2 rounded-lg transition-colors">
                                应用筛选
                            </button>
                        </div>
                    </div>
                </form>
            </div>

            <!-- 筛选和排序选项 -->
            <div class="flex flex-wrap justify-between items-center mb-4">
                <div class="flex flex-wrap gap-2 mb-4 md:mb-0">
                        <span class="px-3 py-1  rounded-full text-sm font-medium">
                            人工智能
                            <button class="ml-1">
                                <i class="fa-solid fa-times-circle"></i>
                            </button>
                        </span>
                    <span class="px-3 py-1  rounded-full text-sm font-medium">
                            人工智能
                            <button class="ml-1">
                                <i class="fa-solid fa-times-circle"></i>
                            </button>
                        </span>
                    <button class="px-3 py-1 dark:text-gray-300  rounded-full text-sm font-medium transition-colors">
                        清除全部
                    </button>
                </div>

                <div class="flex items-center space-x-2">
                    <span class="text-sm text-gray-600">排序方式:</span>
                    <select class="p-2 border  rounded-lg text-sm focus:outline-none focus:ring-2 /50 ">
                        <option value="relevance" class="text-dark">相关度</option>
                        <option value="newest" class="text-dark">最新发布</option>
                        <option value="oldest" class="text-dark">最早发布</option>
                        <option value="popular" class="text-dark">最多阅读</option>
                    </select>
                </div>
            </div>
        </div>
    </section>

    <!-- 主要内容区 -->
    <div class="grid grid-cols-1 lg:grid-cols-12 gap-8 dark:text-white">
        <!-- 搜索结果 -->
        <section class="lg:col-span-8">
            <!-- 搜索结果列表 -->
            <div class="space-y-6">
                <!-- 搜索结果项 1 -->
                <article class="rounded-xl p-6 shadow-sm  search-card-hover">
                    <div class="flex flex-col md:flex-row gap-6">
                        <div class="md:w-1/3">
                            <a href="#" class="block overflow-hidden rounded-lg">
                                <img src="https://picsum.photos/id/1/400/300" alt="文章缩略图"
                                     class="w-full h-48 object-cover transition-transform duration-500 hover:scale-105">
                            </a>
                        </div>

                        <div class="md:w-2/3">
                            <div class="flex items-center space-x-2 mb-2">
                                <span class="  px-3 py-1 rounded-full text-xs">性能优化</span>
                                <span><i class="fa-solid fa-calendar-alt mr-1"></i> 2025-05-05</span>
                                <span><i class="fa-solid fa-user mr-1"></i> 王架构师</span>
                                <span><i class="fa-solid fa-eye mr-1"></i> 3.1k</span>
                            </div>

                            <h2 class="text-xl font-bold mb-2">
                                <a href="#"
                                   class="hover: transition-colors">探索人工智能的未来发展：从机器学习到通用人工智能</a>
                            </h2>

                            <p class="text-gray-600 mb-4 line-clamp-3">
                                人工智能（AI）已经成为当今世界最具变革性的技术之一，其发展速度之快超出了许多人的预期。从语音助手到自动驾驶汽车，从医疗诊断到金融分析，AI正在各个领域展现出强大的应用潜力...</p>

                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <img src="https://picsum.photos/id/1005/40/40" alt="作者头像"
                                         class="w-8 h-8 rounded-full object-cover">
                                    <span class="text-sm font-medium">李明远</span>
                                </div>

                                <div class="flex items-center space-x-4 text-sm text-gray-500">
                                        <span class="flex items-center">
                                            <i class="fa-solid fa-eye mr-1"></i> 2.4k
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-comment mr-1"></i> 24
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-bookmark mr-1"></i> 128
                                        </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </article>

                <!-- 搜索结果项 2 -->
                <article class="rounded-xl p-6 shadow-sm  search-card-hover">
                    <div class="flex flex-col md:flex-row gap-6">
                        <div class="md:w-1/3">
                            <a href="#" class="block overflow-hidden rounded-lg">
                                <img src="https://picsum.photos/id/2/400/300" alt="文章缩略图"
                                     class="w-full h-48 object-cover transition-transform duration-500 hover:scale-105">
                            </a>
                        </div>

                        <div class="md:w-2/3">
                            <div class="flex items-center space-x-2 mb-2">
                                <span class="  px-3 py-1 rounded-full text-xs">性能优化</span>
                                <span><i class="fa-solid fa-calendar-alt mr-1"></i> 2025-05-05</span>
                                <span><i class="fa-solid fa-user mr-1"></i> 王架构师</span>
                                <span><i class="fa-solid fa-eye mr-1"></i> 3.1k</span>
                            </div>

                            <h2 class="text-xl font-bold mb-2">
                                <a href="#"
                                   class="hover: transition-colors">大型语言模型的最新进展与未来挑战</a>
                            </h2>

                            <p class="text-gray-600 mb-4 line-clamp-3">随着GPT-4、Llama
                                3等大型语言模型的出现，自然语言处理领域取得了突破性进展。这些模型在文本生成、问答系统、机器翻译等任务上展现出了惊人的能力，但同时也面临着训练成本高、可解释性差、伦理风险等挑战...</p>

                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <img src="https://picsum.photos/id/1012/40/40" alt="作者头像"
                                         class="w-8 h-8 rounded-full object-cover">
                                    <span class="text-sm font-medium">张伟</span>
                                </div>

                                <div class="flex items-center space-x-4 text-sm text-gray-500">
                                        <span class="flex items-center">
                                            <i class="fa-solid fa-eye mr-1"></i> 1.8k
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-comment mr-1"></i> 16
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-bookmark mr-1"></i> 95
                                        </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </article>

                <!-- 搜索结果项 3 -->
                <article class="rounded-xl p-6 shadow-sm  search-card-hover">
                    <div class="flex flex-col md:flex-row gap-6">
                        <div class="md:w-1/3">
                            <a href="#" class="block overflow-hidden rounded-lg">
                                <img src="https://picsum.photos/id/3/400/300" alt="文章缩略图"
                                     class="w-full h-48 object-cover transition-transform duration-500 hover:scale-105">
                            </a>
                        </div>

                        <div class="md:w-2/3">
                            <div class="flex items-center space-x-2 mb-2">
                                <span class="  px-3 py-1 rounded-full text-xs">性能优化</span>
                                <span><i class="fa-solid fa-calendar-alt mr-1"></i> 2025-05-05</span>
                                <span><i class="fa-solid fa-user mr-1"></i> 王架构师</span>
                                <span><i class="fa-solid fa-eye mr-1"></i> 3.1k</span>
                            </div>

                            <h2 class="text-xl font-bold mb-2">
                                <a href="#"
                                   class="hover: transition-colors">AI伦理与负责任的机器学习实践</a>
                            </h2>

                            <p class="text-gray-600 mb-4 line-clamp-3">
                                随着AI技术的广泛应用，伦理问题变得越来越重要。本文探讨了AI伦理的关键挑战，包括算法偏见、隐私保护、透明度与可解释性、责任归属等问题，并提出了实现负责任的机器学习实践的框架和指南...</p>

                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <img src="https://picsum.photos/id/1025/40/40" alt="作者头像"
                                         class="w-8 h-8 rounded-full object-cover">
                                    <span class="text-sm font-medium">王芳</span>
                                </div>

                                <div class="flex items-center space-x-4 text-sm text-gray-500">
                                        <span class="flex items-center">
                                            <i class="fa-solid fa-eye mr-1"></i> 1.5k
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-comment mr-1"></i> 12
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-bookmark mr-1"></i> 78
                                        </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </article>

                <!-- 搜索结果项 4 -->
                <article class="rounded-xl p-6 shadow-sm  search-card-hover">
                    <div class="flex flex-col md:flex-row gap-6">
                        <div class="md:w-1/3">
                            <a href="#" class="block overflow-hidden rounded-lg">
                                <img src="https://picsum.photos/id/4/400/300" alt="文章缩略图"
                                     class="w-full h-48 object-cover transition-transform duration-500 hover:scale-105">
                            </a>
                        </div>

                        <div class="md:w-2/3">
                            <div class="flex items-center space-x-2 mb-2">
                                <span class="  px-3 py-1 rounded-full text-xs">性能优化</span>
                                <span><i class="fa-solid fa-calendar-alt mr-1"></i> 2025-05-05</span>
                                <span><i class="fa-solid fa-user mr-1"></i> 王架构师</span>
                                <span><i class="fa-solid fa-eye mr-1"></i> 3.1k</span>
                            </div>

                            <h2 class="text-xl font-bold mb-2">
                                <a href="#"
                                   class="hover: transition-colors">生成式AI：从图像到视频的创新应用</a>
                            </h2>

                            <p class="text-gray-600 mb-4 line-clamp-3">
                                生成式对抗网络（GANs）和扩散模型等生成式AI技术近年来取得了显著进展，不仅在图像生成领域表现出色，还在视频生成、3D建模、音乐创作等领域展现出巨大潜力。本文探讨了这些技术的最新进展及其创新应用...</p>

                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <img src="https://picsum.photos/id/1005/40/40" alt="作者头像"
                                         class="w-8 h-8 rounded-full object-cover">
                                    <span class="text-sm font-medium">李明远</span>
                                </div>

                                <div class="flex items-center space-x-4 text-sm text-gray-500">
                                        <span class="flex items-center">
                                            <i class="fa-solid fa-eye mr-1"></i> 2.1k
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-comment mr-1"></i> 19
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-bookmark mr-1"></i> 102
                                        </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </article>

                <!-- 搜索结果项 5 -->
                <article class="rounded-xl p-6 shadow-sm  search-card-hover">
                    <div class="flex flex-col md:flex-row gap-6">
                        <div class="md:w-1/3">
                            <a href="#" class="block overflow-hidden rounded-lg">
                                <img src="https://picsum.photos/id/5/400/300" alt="文章缩略图"
                                     class="w-full h-48 object-cover transition-transform duration-500 hover:scale-105">
                            </a>
                        </div>

                        <div class="md:w-2/3">
                            <div class="flex items-center space-x-2 mb-2">
                                <span class="  px-3 py-1 rounded-full text-xs">性能优化</span>
                                <span><i class="fa-solid fa-calendar-alt mr-1"></i> 2025-05-05</span>
                                <span><i class="fa-solid fa-user mr-1"></i> 王架构师</span>
                                <span><i class="fa-solid fa-eye mr-1"></i> 3.1k</span>
                            </div>

                            <h2 class="text-xl font-bold mb-2">
                                <a href="#" class="hover: transition-colors">量子计算与AI的交叉融合前景</a>
                            </h2>

                            <p class="text-gray-600 mb-4 line-clamp-3">
                                量子计算和人工智能是当今两大前沿技术，它们的交叉融合可能会带来革命性的突破。量子计算可以为某些AI任务提供指数级加速，而AI也可以帮助优化量子算法和量子硬件。本文探讨了这两个领域的结合点及其潜在应用...</p>

                            <div class="flex items-center justify-between">
                                <div class="flex items-center space-x-3">
                                    <img src="https://picsum.photos/id/1012/40/40" alt="作者头像"
                                         class="w-8 h-8 rounded-full object-cover">
                                    <span class="text-sm font-medium">张伟</span>
                                </div>

                                <div class="flex items-center space-x-4 text-sm text-gray-500">
                                        <span class="flex items-center">
                                            <i class="fa-solid fa-eye mr-1"></i> 1.3k
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-comment mr-1"></i> 10
                                        </span>
                                    <span class="flex items-center">
                                            <i class="fa-solid fa-bookmark mr-1"></i> 65
                                        </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </article>
            </div>

            <!-- 分页 -->
            <div class="mt-12 flex justify-center dark:text-white">
                <nav class="flex items-center space-x-1">
                    <a href="#"
                       class="px-3 py-2 rounded-lg border  hover:bg-gray-300 transition-colors">
                        <i class="fa-solid fa-chevron-left"></i>
                    </a>
                    <a href="#" class="px-3 py-2 rounded-lg border hover:bg-gray-300 ">1</a>
                    <a href="#"
                       class="px-3 py-2 rounded-lg border  hover:bg-gray-300 transition-colors">2</a>
                    <a href="#"
                       class="px-3 py-2 rounded-lg border  hover:bg-gray-300 transition-colors">3</a>
                    <span class="px-3 py-2 text-gray-500">...</span>
                    <a href="#"
                       class="px-3 py-2 rounded-lg border  hover:bg-gray-300 transition-colors">7</a>
                    <a href="#"
                       class="px-3 py-2 rounded-lg border  hhover:bg-gray-300 transition-colors">
                        <i class="fa-solid fa-chevron-right"></i>
                    </a>
                </nav>
            </div>
        </section>

        <!-- 侧边栏 -->
        <aside class="lg:col-span-4 space-y-8">
            <!-- 热门标签（美化样式） -->
            <div class="rounded-xl p-6 shadow-lg mb-8 animate-on-scroll">
                <h3 class="text-xl font-bold mb-4 flex items-center">
                    <i class="fa-solid fa-tags  mr-2"></i> 热门标签
                </h3>
                <div class="flex flex-wrap gap-3">
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50 transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        JavaScript
                    </a>
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50 transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        React
                    </a>
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50 transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        Vue
                    </a>
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50 transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        性能优化
                    </a>
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50 transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        响应式设计
                    </a>
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50 transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        CSS
                    </a>
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50  transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        前端架构
                    </a>
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50  transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        人工智能
                    </a>
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50  transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        TypeScript
                    </a>
                    <a href="#"
                       class="px-4 py-2 rounded-full text-sm font-medium tag-gradient hover:bg-gray-50  transition-all duration-300 transform hover:-translate-y-1 hover:shadow-md scale-hover">
                        Node.js
                    </a>
                </div>
            </div>

            <!-- 分类 -->
            <div class="rounded-xl p-6 shadow-lg mb-8 animate-on-scroll">
                <h3 class="text-xl font-bold mb-4 flex items-center">
                    <i class="fa-solid fa-folder-open  mr-2"></i> 文章分类
                </h3>
                <ul class="space-y-2">
                    <li>
                        <a href="#"
                           class="flex justify-between items-center p-2 rounded-lg hover:bg-gray-50 transition-colors duration-200 scale-hover">
                            <span class="rounded-full">前端开发</span>
                            <span class="  px-2 py-0.5 rounded-full text-xs">42</span>
                        </a>
                    </li>
                    <li>
                        <a href="#"
                           class="flex justify-between items-center p-2 rounded-lg hover:bg-gray-50 transition-colors duration-200 scale-hover">
                            <span class="rounded-full">后端开发</span>
                            <span class="  px-2 py-0.5 rounded-full text-xs">28</span>
                        </a>
                    </li>
                    <li>
                        <a href="#"
                           class="flex justify-between items-center p-2 rounded-lg hover:bg-gray-50 transition-colors duration-200 scale-hover">
                            <span class="rounded-full">移动开发</span>
                            <span class="  px-2 py-0.5 rounded-full text-xs">16</span>
                        </a>
                    </li>
                    <li>
                        <a href="#"
                           class="flex justify-between items-center p-2 rounded-lg hover:bg-gray-50 transition-colors duration-200 scale-hover">
                            <span class="rounded-full">性能优化</span>
                            <span class="  px-2 py-0.5 rounded-full text-xs">12</span>
                        </a>
                    </li>
                    <li>
                        <a href="#"
                           class="flex justify-between items-center p-2 rounded-lg hover:bg-gray-50 transition-colors duration-200 scale-hover">
                            <span class="rounded-full">安全</span>
                            <span class="  px-2 py-0.5 rounded-full text-xs">9</span>
                        </a>
                    </li>
                    <li>
                        <a href="#"
                           class="flex justify-between items-center p-2 rounded-lg hover:bg-gray-50 transition-colors duration-200 scale-hover">
                            <span class="rounded-full ">开发工具</span>
                            <span class="  px-2 py-0.5 rounded-full text-xs">23</span>
                        </a>
                    </li>
                </ul>
            </div>

            <!-- 热门作者 -->
            [#-- <div class="rounded-xl p-6 shadow-sm ">
                <h3 class="text-lg font-bold mb-4">热门作者</h3>
                <div class="space-y-4">
                    <a href="#" class="flex items-center space-x-3 p-2 hover:bg-gray-50 rounded-lg transition-colors">
                        <img src="https://picsum.photos/id/1005/64/64" alt="作者头像"
                             class="w-12 h-12 rounded-full object-cover">
                        <div>
                            <h4 class="font-medium">李明远</h4>
                            <p class="text-sm">人工智能研究员</p>
                        </div>
                        <div class="ml-auto">
                            <button class="px-3 py-1 text-xs  rounded-full  transition-colors">
                                关注
                            </button>
                        </div>
                    </a>
                    <a href="#" class="flex items-center space-x-3 p-2 hover:bg-gray-50 rounded-lg transition-colors">
                        <img src="https://picsum.photos/id/1012/64/64" alt="作者头像"
                             class="w-12 h-12 rounded-full object-cover">
                        <div>
                            <h4 class="font-medium">张伟</h4>
                            <p class="text-sm">数据科学家</p>
                        </div>
                        <div class="ml-auto">
                            <button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full hover:bg-gray-200 transition-colors">
                                已关注
                            </button>
                        </div>
                    </a>
                    <a href="#" class="flex items-center space-x-3 p-2 hover:bg-gray-50 rounded-lg transition-colors">
                        <img src="https://picsum.photos/id/1025/64/64" alt="作者头像"
                             class="w-12 h-12 rounded-full object-cover">
                        <div>
                            <h4 class="font-medium">王芳</h4>
                            <p class="text-sm">AI伦理专家</p>
                        </div>
                        <div class="ml-auto">
                            <button class="px-3 py-1 text-xs  rounded-full  transition-colors">
                                关注
                            </button>
                        </div>
                    </a>
                    <a href="#" class="flex items-center space-x-3 p-2 hover:bg-gray-50 rounded-lg transition-colors">
                        <img src="https://picsum.photos/id/1074/64/64" alt="作者头像"
                             class="w-12 h-12 rounded-full object-cover">
                        <div>
                            <h4 class="font-medium">陈志强</h4>
                            <p class="text-sm">计算机视觉工程师</p>
                        </div>
                        <div class="ml-auto">
                            <button class="px-3 py-1 text-xs  rounded-full  transition-colors">
                                关注
                            </button>
                        </div>
                    </a>
                </div>
            </div> --]
        </aside>
    </div>
</main>

[#include "/layout/footer.html"]
<script>
    document.addEventListener('DOMContentLoaded', function() {
    // 高级搜索切换功能
    const toggleButton = document.getElementById('advanced-search-toggle');
    const optionsPanel = document.getElementById('advanced-search-options');
    //const chevronIcon = toggleButton.querySelector('i');

    if (toggleButton && optionsPanel) {
        toggleButton.addEventListener('click', function() {
            // 切换面板显示状态
            optionsPanel.classList.toggle('hidden');

            // 旋转图标
            if (optionsPanel.classList.contains('hidden')) {
                chevronIcon.style.transform = 'rotate(0deg)';
            } else {
                chevronIcon.style.transform = 'rotate(180deg)';
            }

            // 添加淡入动画
            if (!optionsPanel.classList.contains('hidden')) {
                optionsPanel.style.opacity = '0';
                optionsPanel.style.transform = 'translateY(-10px)';
                optionsPanel.style.transition = 'opacity 300ms ease, transform 300ms ease';

                // 强制重排后应用动画
                setTimeout(() => {
                    optionsPanel.style.opacity = '1';
                    optionsPanel.style.transform = 'translateY(0)';
                }, 10);
            }
        });
    }

    // 为搜索卡片添加悬停效果
    document.querySelectorAll('.search-card-hover').forEach(card => {
        card.addEventListener('mouseenter', function() {
            this.classList.add('shadow-md', 'border-primary/20');
            this.classList.remove('shadow-sm', 'border-gray-100');
            this.style.transform = 'translateY(-2px)';
            this.style.transition = 'all 0.3s ease';
        });

        card.addEventListener('mouseleave', function() {
            this.classList.remove('shadow-md', 'border-primary/20');
            this.classList.add('shadow-sm', 'border-gray-100');
            this.style.transform = 'translateY(0)';
        });
    });

    // 为标签添加悬停效果
    document.querySelectorAll('.scale-hover').forEach(element => {
        element.addEventListener('mouseenter', function() {
            this.style.transform = 'scale(1.05)';
        });

        element.addEventListener('mouseleave', function() {
            this.style.transform = 'scale(1)';
        });
    });
});
</script>
</body>
</html>
[/#escape]
